/**
 * Config.java [V 1.0.0]
 * classes : cn.yunzhisheng.prodemo.Config
 * liujunjie Create  at 2015-1-9  ??4:30:32
 */
package com.example.shareapp.utils;

/**
 * cn.yunzhisheng.prodemo.Config
 * 
 * @author liujunjie <br/>
 *         Create at 2015-1-9 ??4:30:32
 * 
 */
public class Config {
	public static final String appKey = "p3joxfsijcsqh5nxe5qfivr2vchl2mndmy7c4aqj";
	public static final String secret = "5457fdb558d48c27622916da5927ec42";
	public static final String[] sexItems = new String[]{"不显示性别", "男", "女", "不显示性别"};
	public static final String[] sexShow = new String[]{"男", "女", "不显示性别"};
	public static final String[] headItems = new String[]{"拍照", "从手机相册选取"};
	public static final String[] intervalTimeValues = new String[]{"关闭定位","1","4","8","12","20","30","50","60"};
	public static final String CLOSE_LOCATION = "关闭定位";
	public static String add = "添加好友";
	public static String change = "修改";


	public static synchronized int getIndex(int value) {
		if (value == 0){
			return 0;
		}
		for (int i = 0; i < intervalTimeValues.length; i++) {
			if (intervalTimeValues[i].equals(value+"")) {
				return i;
			}
		}
		return 0;//如果未找到返回 0
	}
}
